package com.woniu.deal.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.common.entity.DealServeraccount;
import com.woniu.deal.order.service.DealServeraccountService;
import com.woniu.deal.order.mapper.DealServeraccountMapper;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
* @author Administrator
* @description 针对表【deal_serveraccount】的数据库操作Service实现
* @createDate 2024-08-01 15:22:08
*/
@Service
public class DealServeraccountServiceImpl extends ServiceImpl<DealServeraccountMapper, DealServeraccount>
    implements DealServeraccountService{

    @Autowired
    DealServeraccountMapper dealServeraccountMapper;
    @Override
    public Integer createServerAccount(Integer id) {
        DealServeraccount account = new DealServeraccount(null,id,new BigDecimal(0));
        dealServeraccountMapper.insert(account);
        return account.getServeraccountId();
    }
}




